const state = {
  Login: false,
  topNum: '2', //头部导航
}

const mutations = {
  SetIsLogin(state, param) {
    state.Login = param;
  },
  SetToNum(state, param) {
    state.topNum = param;
  }
}

const actions = {
  setIsLogin({ commit }, param) {
    commit('SetIsLogin', param);
  },
  setToNum({ commit }, param) {
    commit('SetToNum', param);
  }
}

export default {
  state,
  mutations,
  actions
}